package com.mjk.common.ai.dto;

import com.mjk.common.core.jdbc.annotation.Filed;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Min;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.validation.annotation.Validated;

//@Schema(name = "注册请求参数")
@Data
@Validated
public class RegisterReq {

    @Filed(comment = "邮箱")
    @Email
    private String email;

    @Filed(comment = "密码")
    @Min(6)
    private String password;

    @Filed(comment = "验证码ID")
    @Length(min = 32)
    private String captchaId;

    @Filed(comment = "验证码")
    @Length(min = 4, max = 4)
    private String captchaCode;
}
